
*Replication of models in Table 1
use "...\replication group coordinator data.dta"
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==2 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==3 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==4 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==5 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==6 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==7 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==8 & EPP==1, group(Comm_i) or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication of models in Table 2
eststo:clogit Coord Com_exp Coord_exp2 Dist_md* Newcom per_nd_com Age female if Term==5 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Dist_md* Newcom per_nd_com Age female if Term==6 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Dist_md* Newcom per_nd_com Age female if Term==7 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Dist_md* Newcom per_nd_com Age female if Term==8 & EPP==1, group(Comm_i) or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication of models in Table 3
eststo: clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==6 & SOC==1, group(Comm_i) or
eststo: clogit Coord Com_exp Coord_exp2 Dist_md_lrgen_cs Dist_md_galtan_cs Dist_md_eupos_cs Newcom per_nd_com Age female if Term==6 & SOC==1, group(Comm_i) or
eststo: clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==7 & SOC==1, group(Comm_i) or
eststo: clogit Coord Com_exp Coord_exp2 Dist_md_lrgen_cs Dist_md_galtan_cs Dist_md_eupos_cs Newcom per_nd_com Age female if Term==7 & SOC==1, group(Comm_i) or
eststo: clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female if Term==8 & SOC==1, group(Comm_i) or
eststo: clogit Coord Com_exp Coord_exp2 Dist_md_lrgen_cs Dist_md_galtan_cs Dist_md_eupos_cs Newcom per_nd_com Age female if Term==8 & SOC==1, group(Comm_i) or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication of models in Table A1
eststo:clogit Coord Com_exp Coord_exp2 sector_knowledge interestgr_ties Newcom per_nd_com Age female if Term==5 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 sector_knowledge interestgr_ties Newcom per_nd_com Age female if Term==6 & EPP==1, group(Comm_i) or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication of models in Table A2
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female i.Term if Salient2==1 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Dist_lrgen_cs Dist_eupos_cs Dist_galtan_cs Newcom per_nd_com Age female i.Term if Salient2==1 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Newcom per_nd_com Age female i.Term if Salient2==0 & EPP==1, group(Comm_i) or
eststo:clogit Coord Com_exp Coord_exp2 Dist_lrgen_cs Dist_eupos_cs Dist_galtan_cs Newcom per_nd_com Age female i.Term if Salient2==0 & EPP==1, group(Comm_i) or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication of models in Table A3
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==2 & EPP==1, or
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==3 & EPP==1, or
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==4 & EPP==1, or
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==5 & EPP==1, or
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==6 & EPP==1, or
eststo: logit Coord Com_exp Coord_exp2 lag_distEPG2_v per_nd_com Age female if Term==7 & EPP==1, or
esttab, eform not star(+ 0.10 * 0.05 ** 0.01 *** 0.001) pr2

*Replication for Figure A1
ciplot Dist_md_galtan_cs Dist_md_lrgen_cs Dist_md_eupos_cs if EPP==1, by (Term) yscale(range(0 (.2) .8)) legend (position(6) cols(3))
*Replication for Figure A2
ciplot Dist_md_galtan_cs Dist_md_lrgen_cs Dist_md_eupos_cs if SOC==1 & Term>5, by (Term)  yscale(range(0 (.2).8)) legend (position(6) cols(3)) 
